package com.lc1993929.myhdfs.server;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * Created by LiuChang on 2017/9/1/001.
 */
public class DataNode {

    public static void main(String[] args) throws IOException {
        ServerSocket dnServer = new ServerSocket(9900);
        System.out.println("datanode启动。。。。。");
        while (true) {
            Socket sc = dnServer.accept();
            new Thread(new DataNodeHandler(sc)).start();
        }

    }
}
